package com.jinghua.treatment.service;

import com.jinghua.treatment.entity.SysDoctor;
import com.jinghua.treatment.entity.vo.DoctorVO;

import javax.servlet.http.HttpSession;

/**
 * 医生本身相关业务
 * kriss
 */
public interface SysDoctorService {

    /**
     * 根据手机查医生
     * @param phone
     * @return
     */
    SysDoctor findByPhone(String phone);

    SysDoctor regOrLogin(String phone);

    SysDoctor docRegiste(String phone,String name,String wid);

    SysDoctor findById(Integer doctorId);

    void saveSertificate(DoctorVO doctorVO);

    int checkAuthStatus(Integer doctorId,HttpSession session);

    boolean isMyPatient(Integer doctorId,Integer patientId);

}
